package com.item.service;

import com.item.dao.CartMapper;
import com.item.dao.model.Cart;
import com.item.dao.model.CartExample;
import com.item.dao.model.CartKey;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CartService {
    @Autowired
    private CartMapper cartMapper;

    private static final Logger logger = Logger.getLogger(CartService.class);

    public int countByExample(CartExample example) {
        return this.cartMapper.countByExample(example);
    }

    public Cart selectByPrimaryKey(CartKey key) {
        return this.cartMapper.selectByPrimaryKey(key);
    }

    public List<Cart> selectByExample(CartExample example) {
        return this.cartMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(CartKey key) {
        return this.cartMapper.deleteByPrimaryKey(key);
    }

    public int updateByPrimaryKeySelective(Cart record) {
        return this.cartMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Cart record) {
        return this.cartMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(CartExample example) {
        return this.cartMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(Cart record, CartExample example) {
        return this.cartMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(Cart record, CartExample example) {
        return this.cartMapper.updateByExample(record, example);
    }

    public int insert(Cart record) {
        return this.cartMapper.insert(record);
    }

    public int insertSelective(Cart record) {
        return this.cartMapper.insertSelective(record);
    }
}